configure.in gdk/Makefile.am Put -DFOO stuff into Makefile.am INCLUDES.
authorManish Singh <yosh@src.gnome.org>
Tue, 1 Dec 1998 10:42:01 +0000 (10:42 +0000)
committerManish Singh <yosh@src.gnome.org>
Tue, 1 Dec 1998 10:42:01 +0000 (10:42 +0000)
* configure.in
* gdk/Makefile.am
* gtk/Makefile.am: Put -DFOO stuff into Makefile.am INCLUDES.
Separate vars for each, for granularity.

-Yosh

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in
gdk/Makefile.am
gtk/Makefile.am

index 01f5c5ffbfe3f9ee3b82c4d3f4ef594d9f7b82a8..b9e2b36c039b26c9abf5ca686577d1a167b13729 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Tue Dec  1 02:40:22 PST 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in
+       * gdk/Makefile.am
+       * gtk/Makefile.am: Put -DFOO stuff into Makefile.am INCLUDES.
+       Separate vars for each, for granularity.
+
 Tue Dec  1 02:19:54 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkenums.h: fixed a stupid error of mine about the run type
index 01f5c5ffbfe3f9ee3b82c4d3f4ef594d9f7b82a8..b9e2b36c039b26c9abf5ca686577d1a167b13729 100644 (file)
@@ -1,3 +1,10 @@
+Tue Dec  1 02:40:22 PST 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in
+       * gdk/Makefile.am
+       * gtk/Makefile.am: Put -DFOO stuff into Makefile.am INCLUDES.
+       Separate vars for each, for granularity.
+
 Tue Dec  1 02:19:54 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkenums.h: fixed a stupid error of mine about the run type
index 01f5c5ffbfe3f9ee3b82c4d3f4ef594d9f7b82a8..b9e2b36c039b26c9abf5ca686577d1a167b13729 100644 (file)
@@ -1,3 +1,10 @@
+Tue Dec  1 02:40:22 PST 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in
+       * gdk/Makefile.am
+       * gtk/Makefile.am: Put -DFOO stuff into Makefile.am INCLUDES.
+       Separate vars for each, for granularity.
+
 Tue Dec  1 02:19:54 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkenums.h: fixed a stupid error of mine about the run type
index 01f5c5ffbfe3f9ee3b82c4d3f4ef594d9f7b82a8..b9e2b36c039b26c9abf5ca686577d1a167b13729 100644 (file)
@@ -1,3 +1,10 @@
+Tue Dec  1 02:40:22 PST 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in
+       * gdk/Makefile.am
+       * gtk/Makefile.am: Put -DFOO stuff into Makefile.am INCLUDES.
+       Separate vars for each, for granularity.
+
 Tue Dec  1 02:19:54 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkenums.h: fixed a stupid error of mine about the run type
index 01f5c5ffbfe3f9ee3b82c4d3f4ef594d9f7b82a8..b9e2b36c039b26c9abf5ca686577d1a167b13729 100644 (file)
@@ -1,3 +1,10 @@
+Tue Dec  1 02:40:22 PST 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in
+       * gdk/Makefile.am
+       * gtk/Makefile.am: Put -DFOO stuff into Makefile.am INCLUDES.
+       Separate vars for each, for granularity.
+
 Tue Dec  1 02:19:54 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkenums.h: fixed a stupid error of mine about the run type
index 01f5c5ffbfe3f9ee3b82c4d3f4ef594d9f7b82a8..b9e2b36c039b26c9abf5ca686577d1a167b13729 100644 (file)
@@ -1,3 +1,10 @@
+Tue Dec  1 02:40:22 PST 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in
+       * gdk/Makefile.am
+       * gtk/Makefile.am: Put -DFOO stuff into Makefile.am INCLUDES.
+       Separate vars for each, for granularity.
+
 Tue Dec  1 02:19:54 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkenums.h: fixed a stupid error of mine about the run type
index 01f5c5ffbfe3f9ee3b82c4d3f4ef594d9f7b82a8..b9e2b36c039b26c9abf5ca686577d1a167b13729 100644 (file)
@@ -1,3 +1,10 @@
+Tue Dec  1 02:40:22 PST 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in
+       * gdk/Makefile.am
+       * gtk/Makefile.am: Put -DFOO stuff into Makefile.am INCLUDES.
+       Separate vars for each, for granularity.
+
 Tue Dec  1 02:19:54 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkenums.h: fixed a stupid error of mine about the run type
index 18b6e73339aa33a40aa56647eb8da50fda6b73ee..3d01e851d3d0a0448e0e4208c8c1a481df929e92 100644 (file)
@@ -71,12 +71,12 @@ AC_ARG_WITH(threads, [  --with-threads=[posix] support threading ])
 
 if test "x$enable_debug" = "xyes"; then
   test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
-  CFLAGS="$CFLAGS -DG_ENABLE_DEBUG"
+  GTK_DEBUG_FLAGS="-DG_ENABLE_DEBUG"
 else
   if test "x$enable_debug" = "xno"; then
-    CFLAGS="$CFLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DGTK_NO_CHECK_CASTS"
+    GTK_DEBUG_FLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DGTK_NO_CHECK_CASTS"
   else
-    CFLAGS="$CFLAGS -DGTK_NO_CHECK_CASTS"
+    GTK_DEBUG_FLAGS="-DGTK_NO_CHECK_CASTS"
   fi
 fi
 
@@ -164,7 +164,7 @@ AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
     AC_MSG_WARN([Could not determine POSIX flag. (-posix didn't work.)])))
 
 if test "x$enable_xim" = "xyes"; then
-  CFLAGS="$CFLAGS -DUSE_XIM"
+  GTK_XIM_FLAGS="-DUSE_XIM"
 fi
 
 if test x$with_glib = xyes ; then
@@ -291,21 +291,21 @@ fi
 
 # Threads
 
-CFLAGS="$saved_cflags"
-LDFLAGS="$saved_ldflags"
-
 if test "x$with_threads" = "xposix" || test "x$with_threads" = "xyes"; then
   AC_CHECK_LIB(pthread, pthread_attr_init, 
     [AC_DEFINE(USE_PTHREADS)
     x_libs="$x_libs -lpthread"
-    CFLAGS="$CFLAGS -D_REENTRANT"],
+    GTK_THREAD_FLAGS="-D_REENTRANT"],
     # AIX has libpthreads, cause they're special. Special friends (TM)
     AC_CHECK_LIB(pthreads, pthread_attr_init,
       [AC_DEFINE(USE_PTHREADS)
       x_libs="$x_libs -lpthreads"
-      CFLAGS="$CFLAGS -D_REENTRANT -D_THREAD_SAFE"]))
+      GTK_THREAD_FLAGS="-D_REENTRANT -D_THREAD_SAFE"]))
 fi
 
+CFLAGS="$saved_cflags"
+LDFLAGS="$saved_ldflags"
+
 AC_SUBST(x_cflags)
 AC_SUBST(x_includes)
 AC_SUBST(x_ldflags)
@@ -404,7 +404,7 @@ need_x_locale=yes)
 AC_MSG_RESULT($need_x_locale)
 
 if test $need_x_locale = yes; then
-  CFLAGS="$CFLAGS -DX_LOCALE"
+  GTK_LOCALE_CFLAGS="-DX_LOCALE"
 fi
 
 # Checks for header files.
@@ -493,6 +493,11 @@ fi
 AC_MSG_RESULT($gtk_ok)
 AC_SUBST(GDK_WLIBS)
 
+AC_SUBST(GTK_DEBUG_FLAGS)
+AC_SUBST(GTK_XIM_FLAGS)
+AC_SUBST(GTK_LOCALE_FLAGS)
+AC_SUBST(GTK_THREAD_FLAGS)
+
 AC_OUTPUT([
 Makefile
 gtk-config
index d67d38661e5346c4ed3fd9c5733710126f3e74e4..ec4f78af9ad0546c0808f4af85dc1aeaac134c4c 100644 (file)
@@ -4,7 +4,15 @@ gdkincludedir = $(includedir)/gdk
 
 lib_LTLIBRARIES = libgdk.la
 
-INCLUDES = -DG_LOG_DOMAIN=\"Gdk\" -I$(top_srcdir) @GLIB_CFLAGS@ @x_cflags@ 
+INCLUDES = \
+       -DG_LOG_DOMAIN=\"Gdk\"  \
+       -I$(top_srcdir)         \
+       @GTK_DEBUG_FLAGS@       \
+       @GTK_XIM_FLAGS@         \
+       @GTK_LOCALE_FLAGS@      \
+       @GTK_THREAD_FLAGS@      \
+       @GLIB_CFLAGS@           \
+       @x_cflags@ 
 
 libgdk_la_SOURCES = \
        gdk.c           \
index 05613644190f1434dcdb8069ce9086b255918bb9..4643c561032437226ffe7d612c728bc7e59ac850 100644 (file)
@@ -340,10 +340,16 @@ EXTRA_DIST = \
         circles.xbm
 
 INCLUDES = \
-       -DG_LOG_DOMAIN=\"Gtk\" \
-       -DGTK_EXE_PREFIX=\"$(exec_prefix)\"   \
-       -DGTK_DATA_PREFIX=\"$(prefix)\"   \
-       -I$(top_srcdir) @GLIB_CFLAGS@ @x_cflags@
+       -DG_LOG_DOMAIN=\"Gtk\"                  \
+       -DGTK_EXE_PREFIX=\"$(exec_prefix)\"     \
+       -DGTK_DATA_PREFIX=\"$(prefix)\"         \
+       -I$(top_srcdir)                         \
+       @GTK_DEBUG_FLAGS@                       \
+       @GTK_XIM_FLAGS@                         \
+       @GTK_LOCALE_FLAGS@                      \
+       @GTK_THREAD_FLAGS@                      \
+       @GLIB_CFLAGS@                           \
+       @x_cflags@
 
 noinst_PROGRAMS = testgtk testinput testselection testthreads testrgb testdnd simple